package com.kjtpay.design_pattern.visitor;

/**
 * 成功；种类很多，扩展方便；ConcreteVisitor
 */
class Success extends Action {

    public Success() {
        state = "成功";
    }

    @Override
    public String getManConclusion(Man man) {
        return man.type + state
                + "时，背后多半有一个伟大的女人。";
    }

    @Override
    public String getWomanConclusion(Woman woman) {
        return woman.type + state
                + "时，背后多半有一个不成功的男人。";
    }
}
